package com.bazaaroid.server.gae.core.dto.partner;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bazaaroid.server.gae.core.persistence.model.partner.Category;

@XmlRootElement(name = "Category")
public class CategoryDTO {

	private Category category = null;

	public CategoryDTO(){}

	public CategoryDTO(Category category) {
		this.category = category;
	}

	@XmlElement
	public String getKey() {
		return category.getKey().toString();
	}

	@XmlElement
	public String getName() {
		return category.getName();
	}
}
